package cn.mldn.microcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.mldn.microcloud.hystrix.SchedualServiceHiHystric;
import cn.mldn.vo.Dept;

@FeignClient(name= "provider",fallback = SchedualServiceHiHystric.class)
public interface IConsumerRemoteService {
	@RequestMapping(value="/dept/get/{id}")
	public Object get(@PathVariable("id") long id);
	@RequestMapping(value="/dept/add")
	public Object add(@RequestBody Dept dept);
	@RequestMapping(value="/dept/list")
	public Object list();
}
